#include <iostream>

void view() {
	system("cls");
    setColor(15);
	std::cout << "                      *============================*" << std::endl;
	std::cout << "                      |           贪吃蛇           |" << std::endl;
	std::cout << "                      *============================*" << std::endl;
    int max_score;
    readMaxScore("record.txt",max_score);
	std::cout << std::endl << "                      你的最高分是：" << max_score << "分" << std::endl;

	std::cout << std::endl;

	std::cout << "                            输入0返回主菜单" << std::endl;

    while (1) {
		for (int i = 1;i <= 2000;i++)++score;
		for (int i = 1;i <= 2000;i++)--score;
		if (GetAsyncKeyState('0') & 0x8000) {
			mode = 0;
			break;
		}
    }
    mode = 0;
}